package com.syg.extend;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 注意事项:需要交给spirng容器管理,在容器启动的时候触发执行
 */
@Component
public class CommandLineRunnerShow implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("执行时机");
    }


}
